package com.example.demo.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@ContentRowHeight(100) // 设置行高
public class CensusTaskExportVo {
    @ExcelProperty("ID")
    @ColumnWidth(10)
    private Integer id;

    @ExcelProperty("图片ID")
    @ColumnWidth(15)
    private String imageIds; // 保持原始字符串格式（如 "1705,1703,1704"）

    @ExcelProperty("姓名")
    @ColumnWidth(20)
    private String name;

    @ExcelProperty("年龄")
    @ColumnWidth(10)
    private Integer age;

    @ExcelProperty("时间")
    @ColumnWidth(20)
    private Date time;

    @ExcelProperty("结果")
    @ColumnWidth(10)
    private String result;

    @ExcelIgnore
    private List<String> imageBase64List; // 存储所有关联图片的Base64字符串

    @ExcelProperty(value = "图片预览")
    @ColumnWidth(50) // 设置图片列宽度
    private List<byte[]> imageData; // 存储多个图片字节数据
}